package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 
 * @date 
 * @description 派工管理实体类
 */
@Data
@Table("sp_work_assignments")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WorkAssignment implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;
    @Column(tenantId = true)
    private Long tenantId;
    @Column("repair_report_id")
    private Long repairReportId;
    @Column("assignment_time")
    private Date assignmentTime;
    private String handler;
    private String phone; // 联系电话
    private Integer type; // 收费类型：0免费 1收费
    @Column("total_fee")
    private BigDecimal totalFee;
    @Column("service_address")
    private String serviceAddress;
    @Column("required_tasks")
    private String requiredTasks;
    @Column("assignment_notes")
    private String assignmentNotes;
    @Column("completion_time")
    private Date completionTime;
    @Column("completion_status")
    private String completionStatus;
    @Column("create_time")
    private Date createTime;
    @Column("update_time")
    private Date updateTime;
    @Column(value = "is_deleted", isLogicDelete = true)
    private Integer isDeleted;
}